package com.example.demo1.Demo2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UseController {

    @Autowired
    private UseService useService;

    @Autowired
    private User user1;

    public void sayHi(){
        System.out.println("UserController");
        useService.sayhi();
        System.out.println(user1);
    }

}
